package com.dyna.demo.device.domain.req;

import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("设备信息列表查询条件")
public class DcDeviceInfoReq {

    @ApiModelProperty("编号")
    private String code;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty(value = "设备状态")
    private Integer status;

    @ApiModelProperty(value = "设备类型")
    private Integer type;

    @ApiModelProperty(value = "出厂开始时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime startTime;

    @ApiModelProperty(value = "出厂结束时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime endTime;

}
